package csu.web.credit_bank.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;

@Data
@TableName("courses")
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    private String teacherId;
    private String name;
    private String description;
    private String school;
    private String image;
    private Integer credit;

    @TableField(exist = false)
    private String teacherUsername;
    @TableField(exist = false)
    private String teacherAvatar;
}